package com.enzoism.manual.springboot.service.impl;

import com.enzoism.manual.springboot.dao.DeptDao;
import com.enzoism.manual.springboot.model.Dept;
import com.enzoism.manual.springboot.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: SpringCloud
 * @description: 部门实现类
 * @author: zhifeng
 * @create: 2020-12-07 15:02
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Resource
    DeptDao deptDao;

    public int deleteByPrimaryKey(Long deptno) {
        return deptDao.deleteByPrimaryKey(deptno);
    }

    public int insert(Dept record) {
        return deptDao.insert(record);
    }

    public List<Dept> selectList() {
        return deptDao.selectList();
    }

    public int insertSelective(Dept record) {
        return deptDao.insertSelective(record);
    }

    public Dept selectByPrimaryKey(Long deptno) {
        return deptDao.selectByPrimaryKey(deptno);
    }

    public int updateByPrimaryKeySelective(Dept record) {
        return deptDao.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Dept record) {
        return deptDao.updateByPrimaryKey(record);
    }
}
